<!doctype html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title><?=$title;?></title>
<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible">
<meta content="<?=$keyword;?>" name="keyword">
<meta content="<?=$description;?>" name="description">
<meta property="wb:webmaster" content="253c3044891e86bb" />
<meta property="qc:admins" content="1704344557167356375" />
<link type="text/css" href="<?=STATIC_URL;?>css/common.css" rev="stylesheet" rel="stylesheet">
<link type="text/css" href="<?=STATIC_URL;?>css/index.css" rev="stylesheet" rel="stylesheet">
<link href="<?=STATIC_URL;?>favicon.ico" type="image/x-icon" rel="icon" />
<link href="<?=STATIC_URL;?>favicon.ico" type="image/x-icon" rel="shortcut icon" />
<body>
<div id="container">
<? include 'com-header.tpl.php'; ?>
<!------------------------------------>
<div class="clear"></div>
<!------------------------------------>

<div class="intro">
  <div class="adt" style="display:none"> <a href="#"><img src="http://at.bj100.com/20120222/20120222112313_69743.jpg" width="990" height="90"/></a> </div>
  <div class="main_view">
    <div class="window">
      <div class="image_reel">
        <a href="/shop/1251" target="_blank" title="高新园区 乐家牛肉饭"><img width=660 src="<?=STATIC_URL;?>ad/top02.jpg" alt="软件园数码路 乐家牛肉饭" /></a>
        <a href="#" target="_blank" title="2012.3.8 新版震撼上线"><img width=660 src="<?=STATIC_URL;?>ad/top01.jpg" alt="" /></a>
        <a href="#" target="_blank" title="餐馆免费加盟，0元开店"><img width=660 src="http://www.xiangha.com/images/banner/b2.jpg" alt="" /></a>
        <a href="#" target="_blank" title="宅男、宅女、宅资讯"><img width=660 src="http://www.xiangha.com/images/banner/b4.jpg" alt="" /></a> </div>
    </div>
    <div class="paging">
        <a href="#" rel="1">软件园数码路 乐家牛肉饭</a>
        <a href="#" rel="2">2012.3.8 新版震撼上线</a>
        <a href="#" rel="3">餐馆免费加盟，0元开店</a>
        <a href="#" rel="4">宅男、宅女、宅资讯</a> </div>
  </div>
  <div class="main_news">
    <div class="newsbox">
      <h2>最新消息</h2>
      <ul>
        <li>● <a>加入速订客QQ群: <font color="red">30743869</font></a></li>
        <li>● <a href="/html/apply" target="_blank" style="color:#00C">[加盟] 餐厅加盟请点这里</a></li>
        <li>● <a href="/waimai/gaoxinyuanqu" target="_blank">[高新园区]</a><a href="/shop/1251" target="_blank">乐家牛肉饭</a>加盟</li>
        <li>● <a href="/waimai?q=<?=urlencode('大成家');?>" target="_blank">[连锁]</a><a href="/waimai?q=<?=urlencode('大成家');?>" target="_blank">大成家</a>加盟</li>
        <li>● <a href="/waimai?q=<?=urlencode('李先生');?>" target="_blank">[连锁]</a><a href="/waimai?q=<?=urlencode('李先生');?>" target="_blank">李先生牛肉面</a>加盟</li>
      </ul>
    </div>

    <!--
      <div id="weiboshow">
            <iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=-1&isTitle=0&noborder=0&isWeibo=0&isFans=0&uid=2607714464&verifier=fe5f84f0&colors=d6f3f7,FEF9E1,666666,0082cb,ecfbfd&dpc=1"></iframe>
      </div>
      -->
    <div id="weibobutton">
      <iframe frameborder="0" allowtransparency="true" scrolling="no" border="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=252&height=75&uid=2607714464&style=4&btn=red&dpc=1"></iframe>
    </div>
    <!--a href="#"><img src="/gg.jpg" width="252" height="88px" /></a-->
  </div>
  <div class="clear"></div>
  <div class="adm" style="display:none"> <a href="#"><img src="http://img.sudingke.com/upload/2012/02/ad2.jpg" width="990" /></a> </div>
  <div class="main_area">
    <div class="nrtop">
      <div class="tp"><a target="_blank" href="/waimai">搜外卖</a> </div>
      <div class="js">
        <h3>速订客有1,029家餐厅38,561道美食供您挑选，不必再为吃什么操心!</h3>
      </div>
      <div class="gd"> <!--<span><strong>品牌专区</strong></span><a href="#">商户加盟</a>
        <a class="agd" href="#" target="_blank">更多</a>-->
      </div>
    </div>
    <div class="nrnav">
      <!--左start-->
      <div class="nrlef">
        <div class="sqlb">
          <ul class="sq">
         <?php
            $bigZoneList = $zoneInfo->getZoneList(0);
            foreach($bigZoneList as $zoneItem){
         ?>
            <li><a href="<?=Base::frontUrl('waimai', $zoneItem->pinyin);?>"><?=h($zoneItem->name);?></a></li>
         <?php
            }
         ?>
          </ul>
          <ul class="sq">
            <li><a target="_blank" href="/waimai/renminguangchang">人民广场</a></li>
            <li><a target="_blank" href="/waimai/xianlu/">西安路沿线</a></li>
            <li><a target="_blank" href="/waimai/">太原街沿线</a></li>
            <li><a target="_blank" href="/waimai/sanbaguangchang">三八广场</a></li>
            <li><a target="_blank" href="/waimai/zhongshanguangchang">中山广场</a></li>
            <li><a target="_blank" href="/waimai/aolinpike">奥林匹克广场</a></li>
            <li><a target="_blank" href="/waimai/renminguangchang">人民广场</a></li>
            <li><a target="_blank" href="/waimai/">星海湾</a></li>
            <li><a target="_blank" href="/waimai/ligongdaxue">理工大学</a></li>
            <li><a target="_blank" href="/waimai/heishijiao">黑石礁</a></li>
            <li><a target="_blank" href="/waimai/gaoxinyuanqu">高新园区</a></li>
            <li><a target="_blank" href="/waimai/ruanjianyuan">软件园</a></li>
            <li><a target="_blank" href="/waimai/">更多分类 &gt;&gt;</a></li>
          </ul>
          <ul class="pp">
            <li><a target="_blank" href="http://lihua.sudingke.com"><img border="0" src="<?=STATIC_URL;?>ad/store006.gif" alt="大连丽华快餐"></a></li>
            <li><a target="_blank" href="/shop/1311"><img border="0" src="<?=STATIC_URL;?>ad/store004.gif" alt="中国味饺子"></a></li>
            <li><a target="_blank" href="/waimai?q=<?=urlencode('大成家');?>"><img border="0" src="<?=STATIC_URL;?>ad/store005.gif" alt="大成家"></a></li>
            <li><a target="_blank" href="/waimai?q=<?=urlencode('李先生');?>"><img border="0" src="<?=STATIC_URL;?>ad/store002.gif" alt="李先生牛肉面"></a></li>
            <li><a target="_blank" href="/waimai?q=<?=urlencode('吉祥馄饨');?>"><img border="0" src="<?=STATIC_URL;?>ad/store003.gif" alt="吉祥馄饨"></a></li>
            <li><a target="_blank" href="#"><img border="0" src="http://img.sudingke.com/upload/2012/02/store003.jpg" alt=""></a></li>
            <li><a target="_blank" href="#"><img border="0" src="http://img.sudingke.com/upload/2012/02/store007.jpg" alt=""></a></li>
          </ul>
        </div>
      </div>
      <!--左end-->

      <!--优惠券下载排行榜start-->
      <div class="nrrig">
        <h3>常用订餐电话</h3>
        <ul class="phone">
          <li><a target="_blank" href="#">肯德基(KFC)<span>4008-823-823</span></a></li>
          <li><a target="_blank" href="#">必胜客<span>4008-123-123</span></a></li>
          <li><a target="_blank" href="#">麦当劳<span>4008-517-517</span></a></li>
          <li><a target="_blank" href="#">真功夫<span>4006-927-927</span></a></li>
          <li style="width:222px"><a style="width:100%" target="_blank" href="http://lihua.sudingke.com">大连丽华快餐<span>400-0411-569转888</span></a></li>
        </ul>
      </div>
      <!--优惠券下载排行榜end-->
    </div>
  </div>
  <div class="clear"></div>
  <div class="adm" style="display:block"><a href="#"><img src="http://img.sudingke.com/upload/2012/02/ad1.jpg" width="990" /></a></div>
  <div class="main_area">
    <div class="nrtop">
      <div class="tp"><a target="_blank" href="/waimai">餐馆排行</a> </div>
    </div>
    <div class="nrnav">
      <!--左start-->
      <div class="xflef">
      <?php for($i=0; $i<12; $i++):
          $item = $shopList[$i];
      ?>
        <div class="tgul">
          <p class="tp"><a href="/shop/<?=$item['res_id'];?>" target="_blank"><img src="<?=UPLOAD_URL.$item['picture'];?>" alt="<?=h($item['name']);?>" style="border: 1px solid rgb(221, 221, 221);"></a></p>
          <p class="wz"><a href="/shop/<?=$item['res_id'];?>" target="_blank"><?=h($item['name']);?></a></p>
          <!--p class="xj">￥<b>75</b> &nbsp; <span class="yj">118.00</span> &nbsp; <span class="zk">6.4折</span></p-->
        </div>
      <?php endfor; ?>
        <div class="clear"></div>
      </div>
      <!--左end-->

      <!--优惠券下载排行榜start-->
      <div class="nrrig">
        <h3>外卖搜索排行</h3>
        <ul class="shuz">
        <?php for($i=12; $i<22; $i++):
                $item = $shopList[$i];
                $subzone = $zoneInfo->getZoneById($item['subzone_id']);
        ?>
          <li><a class="cat" target="_blank" href="/waimai/<?=$subzone->pinyin;?>">[<?=h($subzone->name);?>]</a> <a href="/shop/<?=$item['res_id'];?>" target="_blank"><?=$item['name'];?></a></li>
        <?php endfor; ?>
        </ul>
        <div class="checkmore"><a href="/waimai">查看更多订餐电话 >></a>&nbsp;</div>
        <p>&nbsp;</p>
        <img src="http://img.sudingke.com/upload/2012/02/ad3.jpg" width="240" height="150" />
        <!--优惠券下载排行榜end-->
      </div>
    </div>
  </div>

  <!------------------------------------>
  <div class="clear"></div>

  <!------------------------------------>
  <? include 'com-footer.tpl.php'; ?>
</div>
<script type="text/javascript" src="<?=STATIC_URL;?>js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    //Set Default State of each portfolio piece
    $(".paging").show();
    $(".paging a:first").addClass("active");

    //Get size of images, how many there are, then determin the size of the image reel.
    var imageWidth = $(".window").width();
    var imageSum = $(".image_reel img").size();
    var imageReelWidth = imageWidth * imageSum;

    //Adjust the image reel to its new size
    $(".image_reel").css({'width' : imageReelWidth});

    //Paging + Slider Function
    rotate = function(){
        var triggerID = $active.attr("rel") - 1; //Get number of times to slide
        var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide

        $(".paging a").removeClass('active'); //Remove all active class
        $active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function)

        //Slider Animation
        $(".image_reel").animate({
            left: -image_reelPosition
        }, 500 );

    };

    //Rotation + Timing Event
    rotateSwitch = function(){
        play = setInterval(function(){ //Set timer - this will repeat itself every 3 seconds
            $active = $('.paging a.active').next();
            if ( $active.length === 0) { //If paging reaches the end...
                $active = $('.paging a:first'); //go back to first
            }
            rotate(); //Trigger the paging and slider function
        }, 7000); //Timer speed in milliseconds (3 seconds)
    };

    rotateSwitch(); //Run function on launch

    //On Hover
    $(".image_reel a").hover(function() {
        clearInterval(play); //Stop the rotation
    }, function() {
        rotateSwitch(); //Resume rotation
    });

    //On Click
    $(".paging a").click(function() {
        $active = $(this); //Activate the clicked paging
        //Reset Timer
        clearInterval(play); //Stop the rotation
        rotate(); //Trigger rotation immediately
        rotateSwitch(); // Resume rotation
        return false; //Prevent browser jump to link anchor
    });

});
</script>
</body>
</html>